<template>
	<view class="user-data uni-flex">
		<view class="user-data__item uni-flex uni-column uni-center">
			<view class="user-data__item__title"><text>当前积分</text></view>
			<view class="user-data__item__data1"><text>{{points}}</text></view>
			<view class="user-data__item__data2"><text>累计积分 {{allPoints}}</text></view>
		</view>
		<view class="user-data__line uni-flex">
			<view></view>
		</view>
		<view class="user-data__item uni-flex uni-column uni-center">
			<view class="user-data__item__title"><text>环保奖励金(元)</text></view>
			<view class="user-data__item__data1"><text>{{amount}}</text></view>
			<view class="user-data__item__data2"><text>投递次数 {{deliverCount}}</text></view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'userData',
		props: {
			points: { //积分
				type: String,
				default: '0'
			},
			allPoints: { //累计积分
				type: String,
				default: '0'
			},
			amount: { //奖励金
				type: String,
				default: '0'
			},
			deliverCount: { //投递次数
				type: String,
				default: '0'
			},
		},
		data() {
			return {}
		},
	}
</script>

<style>
	/* user-data */
	.user-data {
		background-color: #FFFFFF;
		color: #888888;
		margin-bottom: 30rpx;
	}

	.user-data__item {
		padding: 30rpx 0;
		width: 49.5%;
	}

	.user-data__item__title {
		font-size: 30rpx;
	}

	.user-data__item__data1 {
		font-size: 40rpx;
		color: #f28400;
		line-height: 1.5;
		margin-top: 16rpx;
	}

	.user-data__item__data2 {
		font-size: 22rpx;
	}

	.user-data__line {
		width: 1%;
		align-items: center;
		justify-content: center;
	}

	.user-data__line view {
		width: 1px;
		height: 80rpx;
		background-color: #EEEEEE;
	}
</style>
